const http = require('http');


for (let i = 0; i < 1000; i++) {
    http.get({
        port: 4000,
        hostname: 'localhost'
    }, function (res) {
        res.on('data', function (data) {
            console.log(data.toString())
        })
    })
}


// const request = require('request');
// setInterval(() => {
//     request('http://localhost:3000', function (error, response, body) {
//         console.log('body:', body); // Print the HTML for the Google homepage.
//     })
// }, 4000)